package com.franklin.ideaplugin.maphelper.col.operation.impl.collection.set;

import com.franklin.ideaplugin.maphelper.col.method.IColInsertMethod;
import com.franklin.ideaplugin.maphelper.col.method.impl.ColInsertMethodImpl;
import com.franklin.ideaplugin.maphelper.col.operation.impl.collection.CollectionReadWriteOperation;

import java.util.Set;

/**
 * Set操作
 *
 * @author Ye Junhui
 * @since 2024/3/11
 */
public class SetReadWriteOperation extends CollectionReadWriteOperation {

    @Override
    public String getClassQualifiedName() {
        return Set.class.getName();
    }

    @Override
    public Set<IColInsertMethod> getInsertMethods() {
        Set<IColInsertMethod> insertMethods = super.getInsertMethods();
        insertMethods.add(new ColInsertMethodImpl("add", 1, 0));
        return insertMethods;
    }

    @Override
    public Set<IColInsertMethod> getInsertAllMethods() {
        Set<IColInsertMethod> insertAllMethods = super.getInsertAllMethods();
        insertAllMethods.add(new ColInsertMethodImpl("addAll", 1, 0));
        return insertAllMethods;
    }

}
